//
// Created by hunan on 25-7-20.
//

#ifndef DOWNLOAD_RATE_H
#define DOWNLOAD_RATE_H
#include <cstdint>

class DownloadRate
{
public:
    DownloadRate() = default;
    ~DownloadRate() = default;
    void AddData(int data_size);
    void PrintStatistic() const;
private:
    uint64_t m_begin_tm;
    uint64_t m_data;
};



#endif //DOWNLOAD_RATE_H
